--主入口函数。从这里开始lua逻辑

require "Util/GameUtil"
require "Battle/BattleDefine"
require "Data/DataDefine"

require "Battle/Battle"

require "Config/GameConfig"

require "math"
require "os"


function Main()			
	
	require "Game"
	
	gameInstance:start()

	--GameLog.Warning("print random")
	--print(math.random(1,100))


	ObjectPoolManager = GameObjectPoolManager.Instance
	ResourceManager.LoadConfig()
	ResourceManager.LoadConfigFile()
	
end

--场景切换通知
function OnLevelWasLoaded(level)
	Time.timeSinceLevelLoad = 0
end


